const express = require("express");
const app = express();
app.listen(3000,()=>{
  console.log("3000服务器已开启");
});
const path = require("path");
app.get("/index",(req,res)=>{
  res.sendFile(path.join(__dirname,"./view/index.html"),(err)=>{
    if(err){
      console.log(err);
    };
  });
});